package com.wendy.common.core.errcode.dept;

import com.wendy.common.core.constant.HttpStatus;
import com.wendy.common.core.errcode.base.BaseError;

public class DeptError extends BaseError {


    public static DeptError ADD_ERROR = new DeptError("新增部门%s失败，部门名称已存在", HttpStatus.NOT_FOUND);
    public static DeptError EDIT_ERROR = new DeptError("修改部门%s失败，部门名称已存在", HttpStatus.NOT_FOUND);
    public static DeptError EDIT_SELF_ERROR = new DeptError("修改部门%s失败，上级部门不能是自己", HttpStatus.ERROR);
    public static DeptError EDIT_SUB_DEPT_ERROR = new DeptError("该部门包含未停用的子部门！", HttpStatus.ERROR);
    public static DeptError DEL_SUB_DEPT_ERROR = new DeptError("存在下级部门,不允许删除！", HttpStatus.WARN);
    public static DeptError DEL_SUB_USER_ERROR = new DeptError("部门存在用户,不允许删除！", HttpStatus.WARN);
    public DeptError() {
        super();
    }
    public DeptError(String msg, Integer code) {
        super(msg, code);
    }
}
